//引入request封装方法
import { http } from "@/utils/request";

//引入detail类型
// import {CategoryView,Price,SkuInfo,SpuSaleAttrList,SpuSaleAttrValueList} from "@/types/detail"
import  type {IDetail} from "@/types/detail"

/**
 * @description 商品详情页
 * @param skuId 商品ID

 * @returns 
 */
export const reqDetail =(skuId:string)=>{
    return http<IDetail>(`/api/item/${skuId}`,'GET',)
}
